/* token */
const AppKey = "Authorization";
export function getToken() {
	let data
	try {
		data = uni.getStorageSync(AppKey)
	} catch (e) {
		console.log(e)
	}
	return data
}

export function setToken(data) {
	return uni.setStorageSync(AppKey,data)
}

export function removeToken() {
	return uni.removeStorageSync(AppKey);
}
/* 语言类型 */
const Key = "dmttLanguage";
export function getLanguage() {
	let data
	try {
		data = uni.getStorageSync(Key)
	} catch (e) {
		console.log(e)
	}
	return data
}

export function setLanguage(data) {
	return uni.setStorageSync(Key,data)
}

export function removeLanguage() {
	return uni.removeStorageSync(Key);
}